package com.whsxt.common;


public enum CodeMsg {
	//登录
	USERNAME_PASSWORD_ERROR(-1,"账号或密码错误"),
	CHECKCODE_ERROR(-1,"验证码错误"),
	SECCUSS(200,"登录成功"),
	
	USER_UPDATE_SECCUSS(200,"用户信息修改成功"),
	USER_UPDATE_ERROR(-1,"用户信息修改失败"),
	//日志
	LOGININFO_BATCH_DELETE_ERROR(-1,"日志文件批量删除失败"),
	LOGININFO_BATCH_DELETE_SECCUSS(200,"日志文件批量删成功"),
		
	LOGININFO_DELETE_ERROR(-1,"日志文件删除失败"),
	LOGININFO_DELETE_SECCUSS(200,"日志文件删除成功"),
	
	//部门
	DEPT_ADD_SECCUSS(200,"部门新增成功"),
	DEPT_ADD_ERROR(-1,"部门新增失败"),
	
	DEPT_UPDATE_ERROE(-1,"部门更新失败"),
	DEPT_UPDATE_SECCUSS(200,"部门更新成功"),
	
	DEPT_DELETE_ERROE(-1,"部门删除失败"),
	DEPT_DELETE_SECCUSS(200,"部门删除成功"),
	
	//公告
	NOTICE_ADD_SECCUSS(200,"公告新增成功"),
	NOTICE_ADD_ERROR(-1,"公告新增失败"),
	
	NOTICE_BATCH_DELETE_ERROE(-1,"公告批量删除失败"),
	NOTICE_BATCH_DELETE_SECCUSS(200,"公告批量删除成功"),
	
	NOTICE_UPDATE_ERROE(-1,"公告更新失败"),
	NOTICE_UPDATE_SECCUSS(200,"公告更新成功"),
	
	NOTICE_DELETE_ERROE(-1,"公告删除失败"),
	NOTICE_DELETE_SECCUSS(200,"公告删除成功"),
	
	//权限
	PERMISSION_ADD_SECCUSS(200,"权限新增成功"),
	PERMISSION_ADD_ERROR(-1,"权限新增失败"),
				
	PERMISSION_UPDATE_ERROE(-1,"权限更新失败"),
	PERMISSION_UPDATE_SECCUSS(200,"权限更新成功"),
				
	PERMISSION_DELETE_ERROE(-1,"权限删除失败"),
	PERMISSION_DELETE_SECCUSS(200,"权限删除成功"),
	
	//进货
	INPORT_ADD_SECCUSS(200,"进货新增成功"),
	INPORT_ADD_ERROR(-1,"进货新增失败"),
					
	INPORT_UPDATE_ERROE(-1,"进货更新失败"),
	INPORT_UPDATE_SECCUSS(200,"进货更新成功"),
					
	INPORT_DELETE_ERROE(-1,"进货删除失败"),
	INPORT_DELETE_SECCUSS(200,"进货删除成功"),
	
	INPORT_BACK_ERROE(-1,"退货失败"),
	INPORT_BACK_SECCUSS(200,"退货成功"),
	
	//缓存
	CACHE_DELETE_SUCCESS(200,"缓存删除成功"),
	CACHE_SYNC_SUCCESS(200,"缓存同步成功"),
	//销售
	SALES_ADD_SECCUSS(200,"销售数据新增成功"),
	SALES_ADD_ERROR(-1,"销售数据新增失败"),
						
	SALES_UPDATE_ERROE(-1,"销售数据更新失败"),
	SALES_UPDATE_SECCUSS(200,"销售数据更新成功"),
						
	SALES_DELETE_ERROE(-1,"销售数据删除失败"),
	SALES_DELETE_SECCUSS(200,"销售数据删除成功"),
		
	SALES_BACK_ERROE(-1,"退货失败"),
	SALES_BACK_SECCUSS(200,"退货成功"),
	
	LOW_STOCK(-1,"库存不足"),
	
	SALES_NUMBER_ERROR(-1,"退货数量不得超过销售数量"),
	//角色
	ROLE_ADD_SECCUSS(200,"角色新增成功"),
	ROLE_ADD_ERROR(-1,"角色新增失败"),
					
	ROLE_UPDATE_ERROE(-1,"角色更新失败"),
	ROLE_UPDATE_SECCUSS(200,"角色更新成功"),
					
	ROLE_DELETE_ERROE(-1,"角色删除失败"),
	ROLE_DELETE_SECCUSS(200,"角色删除成功"),
	
	SAVE_SECCUSS(200,"保存成功"),
	SAVE_ERROR(-1,"保存失败"),
	
	//菜单
	MENU_ADD_SECCUSS(200,"菜单新增成功"),
	MENU_ADD_ERROR(-1,"菜单新增失败"),
		
	MENU_UPDATE_ERROE(-1,"菜单更新失败"),
	MENU_UPDATE_SECCUSS(200,"菜单更新成功"),
		
	MENU_DELETE_ERROE(-1,"菜单删除失败"),
	MENU_DELETE_SECCUSS(200,"菜单删除成功"),
	//sys
	
	//用户
	USER_ADD_SECCUSS(200,"用户新增成功"),
	USER_ADD_ERROR(-1,"用户新增失败"),
			
	USER_DELETE_ERROE(-1,"用户删除失败"),
	USER_DELETE_SECCUSS(200,"用户删除成功"),
	
	INSERT_USER_ROLE_SECCUSS(200,"用户角色添加成功"),
	INSERT_USER_ROLE_ERROR(-1,"用户角色添加失败"),
	
	//客户
	CUSTOMER_ADD_SECCUSS(200,"客户新增成功"),
	CUSTOMER_ADD_ERROR(-1,"客户新增失败"),
			
	CUSTOMER_DELETE_ERROE(-1,"客户删除失败"),
	CUSTOMER_DELETE_SECCUSS(200,"客户删除成功"),
	
	CUSTOMER_UPDATE_ERROE(-1,"客户更新失败"),
	CUSTOMER_UPDATE_SECCUSS(200,"客户更新成功"),
	
	CUSTOMER_BATCH_DELETE_ERROE(-1,"客户批量删除失败"),
	CUSTOMER_BATCH_DELETE_SECCUSS(200,"客户批量删除成功"),
	
	//供应商
	PROVIDER_ADD_SECCUSS(200,"供应商新增成功"),
	PROVIDER_ADD_ERROR(-1,"供应商新增失败"),
				
	PROVIDER_DELETE_ERROE(-1,"供应商删除失败"),
	PROVIDER_DELETE_SECCUSS(200,"供应商删除成功"),
		
	PROVIDER_UPDATE_ERROE(-1,"供应商更新失败"),
	PROVIDER_UPDATE_SECCUSS(200,"供应商更新成功"),
		
	PROVIDER_BATCH_DELETE_ERROE(-1,"供应商批量删除失败"),
	PROVIDER_BATCH_DELETE_SECCUSS(200,"供应商批量删除成功"),
	
	//商品
	GOODS_ADD_SECCUSS(200,"商品新增成功"),
	GOODS_ADD_ERROR(-1,"商品新增失败"),
			
	GOODS_UPDATE_ERROE(-1,"商品更新失败"),
	GOODS_UPDATE_SECCUSS(200,"商品更新成功"),
			
	GOODS_DELETE_ERROE(-1,"商品删除失败"),
	GOODS_DELETE_SECCUSS(200,"商品删除成功"),
	
	
	//修改密码
	ThE_TWO_PASSWORD_DO_NOT_MATCH(-1,"两次密码不一致"),
	
	OLD_PASSWORD_ERROR(-1,"原始密码不正确"),
	
	UPDATE_PASSWORD_ERROR(-1,"修改密码失败"),
	
	UPDATE_PASSWORD_SECCUSS(200,"修改密码成功");
	
	
	
	private Integer code;
	private String msg;
	
	private CodeMsg(Integer code,String msg) {
		this.code=code;
		this.msg=msg;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
